<template>
  <div>详情页</div>
</template>

<script setup>
import { useRoute } from "vue-router";
// 获取当前的路由信息对象 相当于 === this.$route
const route = useRoute();

console.log("route", route.query.id);
</script>
<style scoped>
</style>